package com.ynt.pay.user;

import com.ynt.pay.common.utils.StartCommand;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * 用户服务
 *
 * @Author: ganbo
 * @Date: 2019/11/21 19:50
 */

@SpringBootApplication(scanBasePackages = {"com.ynt.pay.**"})
//@EnableFeignClients(basePackages = "com.ynt.leaf.api")
@EnableEurekaClient //该注解表明应用既作为eureka实例又为eureka client 可以发现注册的服务
@MapperScan("com.ynt.pay.user.mapper")
public class UserApplication {
    public static void main(String[] args) {

        new StartCommand(args); //随机端口
        SpringApplication.run(UserApplication.class, args);
    }
}
